<template>
	<div>


		<template>
			<el-table :data="orderList" >

				<el-table-column prop="id" label="ID" >
				</el-table-column>

				<el-table-column prop="orderName" label="订单明细" >
				</el-table-column>
				<el-table-column prop="user.username" label="用户名" >
				</el-table-column>

				<el-table-column prop="price" label="订单价格" >
				</el-table-column>
			</el-table>
		</template>

	</div>
</template>

<script>
	import axios from "axios"
	export default {
		data() {
			return {
				orderList: []
			}
		},
		created() {

			console.log("create============")
			axios.get('http://localhost:8083/api/order/findAll').then(res => {
				console.log(res.data)
				this.orderList = res.data.data
			})

		}
	}
</script>

<style>
</style>